#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
:FileName: main.py
:Project:
:Brand:
:Version:
:Description: 
:Author: He Yinyu
:Link:
:Time: 2025/4/22 16:56
"""
import uvicorn
from src.settings import settings

def main() -> None:
    """Entrypoint of the app.
    """
    
    uvicorn.run(
        "src.web.app:get_app",
        workers=settings.workers_count,
        host=settings.host,
        port=settings.port,
        reload=settings.enable_reload,
        log_level=settings.log_level.lower(),
        factory=True,
    )
    

if __name__ == "__main__":
    main()